<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/upload/" method="POST" enctype="multipart/form-data">
{% csrf_token %}
    <input name="photo" type="file" >
    <button id="upload" type="submit">上传头像</button>
</form>
</body>
</html>
